{include file='common/head.html'}

<div class="layui-body">
    <div class="layui-tab layui-tab-brief" lay-filter="tab">
        <ul class="layui-tab-title">
            <li class="layui-this" lay-id="t1">蜘蛛到访记录</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <table class="layui-table">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>蜘蛛IP</th>
                            <!--<th>操作系统</th>
                            <th>浏览器</th>-->
                            <th>蜘蛛名称</th>
                            <th>访问页面</th>
                            <th>时间</th>
                        </tr>
                    </thead>
                    <tbody>
                        {foreach $syslogs(key,value,num)}
                        <tr>
                            <td>[num]</td>
                            <td>[value->user_ip]</td>
                          <!--  <td>[value->user_os]</td>
                            <td>[value->user_bs]</td>-->
                            <td>[value->spider_name]</td>
                            <td><a href="[value->log_url]" target="_blank">[value->log_url]</a></td>
                            <td>[value->create_time]</td>
                        </tr>
                        {/foreach}
                    </tbody>
                </table>
                {if(session('ucode')==10001)}
                <a href="{url./admin/Spider/clear}" class="layui-btn layui-btn-sm"  onclick='return confirm("您确定要清空么？")'>清空日志</a>
                {/if}
                <div class="page">{$pagebar}</div>
            </div>
        </div>
    </div>

</div>
<script>
   
</script>
{include file='common/foot.html'}